#ifndef GFXUNIT_H
#define GFXUNIT_H

#include "gfxItem.h"
#include <QRectF>
#include <QPainter>
#include <QPixmap>

class GFXUnit : public GFXItem
{
public:
   explicit GFXUnit(ClientEntity *entity=0, QGraphicsItem *parent=0);
   GFXUnit(const EntityBaseStats &stats, QGraphicsItem *parent=0);
   virtual ~GFXUnit();

   QRectF boundingRect() const;
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
   virtual void tick();
   static void doPaint(const QColor &color, const qint32 size, const qint32 sides, const qint32 squadSize, QPainter& painter, const qreal scale=1.0);
};

#endif // UNITITEM_H
